<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta name="author" content="lijinbo" />
    <meta name="cdnload" content="vue3" />
    <title>Document</title>
  </head>
  <body>
    <div id="app">
      {{ msg }}
      <hr />
      <sync-com v-for="e in 5" :key="e" :index="e"></sync-com>
    </div>
    <script>
      async function getCom() {
        return await import('./b.js')
      }
      const { ref, defineAsyncComponent } = Vue
      const App = {
        setup() {
          const msg = ref('hello vue3')
          return {
            msg
          }
        },
        components: {
          'sync-com': defineAsyncComponent(() => getCom())
        }
      }
      Vue.createApp(App).mount('#app')
    </script>
  </body>
</html>
